import fetch from '@/utils/fetch';

/**
 * 拉取试题
 */
export function getPhoneExamQuestion(number) {
  return fetch({
    url: '/examination/getPhoneExamQuestion',
    method: 'post',
    data: {
      number
    }
  })
}

/**
 * 微信登录
 */
export function getWeChatUserInfo(code, url) {
  return fetch({
    url: '/userLogin/moocGetWeChatUserInfo',
    method: 'post',
    data: {
      code,
      url
    }
  })
}

/**
 * 获取用户信息
 */
export function getSubscribe() {
  return fetch({
    url: '/userLogin/moocGetNameAndAvatarUrl',
    method: 'post'
  })
}
